<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
    <link rel="stylesheet" href="/static/bootstrap-5.3.0-alpha1/css/bootstrap.css">

    <style>
        .login-box{
            margin-top: 100px;
            margin-left: auto;
            margin-right: auto;
            width: 300px;

            padding-left: 20px;
            padding-right: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .login-box h1{
            text-align: center;
        }
    </style>

</head>
<body>

<!--<h1>用户登录</h1>-->
<!--<form method="post" action="/login">-->
<!--    <select name="role">-->
<!--        <option value="1">客户</option>-->
<!--        <option value="2">管理员</option>-->
<!--    </select>-->
<!--    <input type="text" name="mobile" placeholder="手机号">-->
<!--    <input type="password" name="pwd" placeholder="密码">-->
<!--    <input type="submit" value="提 交">-->
<!--    <span style="color:red;">{{ error }}</span>-->
<!--</form>-->

<div class="login-box">
    <form method="post" action="/login">
        <h1>用户登录</h1>
        <label>
            <select class="form-select" name="role">
              <option value="1">管理员</option>
              <option value="2">普通用户</option>
            </select>
        </label>
        <div class="mb-3">
          <label for="mobile" class="form-label">手机号</label>
          <input type="text"  name="mobile" class="form-control" id="mobile" placeholder="请输入手机号">
        </div>
        <div class="mb-3">
          <label for="password" class="form-label">密码</label>
          <input type="password" name="pwd" class="form-control" id="password"></input>
        </div>
        <div class="mb-3">
            <button  type="submit" class="btn btn-primary">提交</button>
            <span style="color:red;">{{ error }}</span>
        </div>

    </form>
</div>

</body>
</html>